package org.irri.smta.service;

import java.io.IOException;
import java.io.OutputStream;
import java.sql.SQLException;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

public interface IReportService {

	void createExcelReport(Map<String, Object> params,
			String jasperReportFilePathname, String tempFilePathname)
			throws SQLException;

	void createPdfReport(Map<String, Object> params,
			String jasperReportFilePathname, String tempFilePathname)
			throws SQLException;

	void createPdfReportToStream(Map<String, Object> params,
			String jasperReportFilePathname, String tempFilePathname,
			OutputStream outputStream) throws SQLException;

	void sendFileToHttpOutputStream(String filePathname,
			HttpServletResponse response, String contentType,
			String contentDisposition) throws IOException;

}
